﻿<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>在线试卷</title>

<link rel="stylesheet" href="css/bootstrap.css">
<style type="text/css">
	.testCon{padding: 5px 15px;}
	h4.tesTitle{color: #00B895;}
	.test-form-box{max-height: 660px;overflow: auto;}
	.assignment{margin: 30px 0 60px;text-align: center;}
	.assignment .btn{background: #00B895;width: 120px;font-size: 18px;border-color: #00B895;}
	#testForm .testCon:nth-child(odd){background: #eee;}
	label{font-weight: normal;}
	.jxz-title{text-align: justify;}
	.topic-answer{display: none;}
</style>

</head>
<body>

<div class="container">
	<div class="row clearfix" id="testArea">

	</div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/test.js"></script>
<script type="text/javascript">
	var timeLeft;
	var data;
	var student;
	$(function(){
		student=JSON.parse(sessionStorage.getItem("Student"));
		if(student!=null){
			//给服务器端发送请求获取数据
			$.get("exam/online",function(resp){
				data=resp;
				timeLeft=data.etime*60;
				var test_id = 'get a test id';
				test(test_id);
				startCountdown();
			},"json");
		}else{
			alert("请先登录，再来考试......");
			location.href="login.html";
		}
	});
</script>

<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器：360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。</p>
<p>来源：<a href="http://sc.chinaz.com/" target="_blank">站长素材</a></p>
</div>
</body>
</html>
